home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
java
/
js.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-04-08
|
9KB
|
373 lines
unit Js;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, ExtCtrls, Buttons, StdCtrls,printers;
type
TForm6 = class(TForm)
Image1: TImage;
Label1: TLabel;
Memo1: TMemo;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
Button6: TButton;
Button7: TButton;
Button8: TButton;
Button9: TButton;
Button10: TButton;
Button11: TButton;
Button12: TButton;
Button13: TButton;
Button14: TButton;
Button15: TButton;
Button16: TButton;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
Memo2: TMemo;
procedure BitBtn2Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button7Click(Sender: TObject);
procedure Button12Click(Sender: TObject);
procedure Button9Click(Sender: TObject);
procedure Button14Click(Sender: TObject);
procedure Button6Click(Sender: TObject);
procedure Button11Click(Sender: TObject);
procedure Button8Click(Sender: TObject);
procedure Button13Click(Sender: TObject);
procedure Button16Click(Sender: TObject);
procedure Button15Click(Sender: TObject);
procedure Button10Click(Sender: TObject);
procedure Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure FormShow(Sender: TObject);
procedure BitBtn1Click(Sender: TObject);
procedure Button1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button10MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button11MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button12MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button13MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button14MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button15MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button16MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button2MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button3MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button4MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button5MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button6MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button8MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button9MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure BitBtn1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure BitBtn2MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button7MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form6: TForm6;
implementation
{$R *.DFM}
procedure TForm6.BitBtn2Click(Sender: TObject);
begin
CLOSE;
end;
procedure TForm6.Button1Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js2.txt');
memo2.lines.loadfromfile('\text\js2.txt');
end;
procedure TForm6.Button3Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js4.txt');
memo2.lines.loadfromfile('\text\js4.txt');
end;
procedure TForm6.Button2Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js3.txt');
memo2.lines.loadfromfile('\text\js3.txt');
end;
procedure TForm6.Button4Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js5.txt');
memo2.lines.loadfromfile('\text\js5.txt');
end;
procedure TForm6.Button5Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js6.txt');
memo2.lines.loadfromfile('\text\js6.txt');
end;
procedure TForm6.Button7Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js8.txt');
memo2.lines.loadfromfile('\text\js8.txt');
end;
procedure TForm6.Button12Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js1.txt');
memo2.lines.loadfromfile('\text\js1.txt');
end;
procedure TForm6.Button9Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js10.txt');
memo2.lines.loadfromfile('\text\js10.txt');
end;
procedure TForm6.Button14Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js13.txt');
memo2.lines.loadfromfile('\text\js13.txt');
end;
procedure TForm6.Button6Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js7.txt');
memo2.lines.loadfromfile('\text\js7.txt');
end;
procedure TForm6.Button11Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js11.txt');
memo2.lines.loadfromfile('\text\js11.txt');
end;
procedure TForm6.Button8Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js9.txt');
memo2.lines.loadfromfile('\text\js9.txt');
end;
procedure TForm6.Button13Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js12.txt');
memo2.lines.loadfromfile('\text\js12.txt');
end;
procedure TForm6.Button16Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js15.txt');
memo2.lines.loadfromfile('\text\js15.txt');
end;
procedure TForm6.Button15Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js14.txt');
memo2.lines.loadfromfile('\text\js14.txt');
end;
procedure TForm6.Button10Click(Sender: TObject);
begin
memo1.visible:=False;
memo1.clear;
memo1.lines.loadfromfile('\text\js16.txt');
memo2.lines.loadfromfile('\text\js16.txt');
end;
procedure TForm6.Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
memo1.visible:=true;
end;
procedure TForm6.FormShow(Sender: TObject);
begin
image1.picture.loadfromfile('\js.bmp');
end;
procedure TForm6.BitBtn1Click(Sender: TObject);
VAR
MYFILE:TEXTFILE;
LI:INTEGER;
begin
AssignPrn(MyFile);
Rewrite(MyFile);
Writeln(MyFile, ' ');
Writeln(MyFile, ' ');
Writeln(MyFile, ' ');
Writeln(MyFile, ' '+LABEL1.CAPTION);
Writeln(MyFile, ' ');
FOR LI:=0 TO MEMO2.LINES.COUNT-1 DO
Writeln(MyFile, ' '+MEMO2.LINES[LI]);
System.CloseFile(MyFile);
end;
procedure TForm6.Button1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button1.setfocus;
end;
procedure TForm6.Button10MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button10.setfocus;
end;
procedure TForm6.Button11MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button11.setfocus;
end;
procedure TForm6.Button12MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button12.setfocus;
end;
procedure TForm6.Button13MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button13.setfocus;
end;
procedure TForm6.Button14MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button14.setfocus;
end;
procedure TForm6.Button15MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button15.setfocus;
end;
procedure TForm6.Button16MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button16.setfocus;
end;
procedure TForm6.Button2MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button2.setfocus;
end;
procedure TForm6.Button3MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button3.setfocus;
end;
procedure TForm6.Button4MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button4.setfocus;
end;
procedure TForm6.Button5MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button5.setfocus;
end;
procedure TForm6.Button6MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button6.setfocus;
end;
procedure TForm6.Button8MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button8.setfocus;
end;
procedure TForm6.Button9MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button9.setfocus;
end;
procedure TForm6.BitBtn1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
bitbtn1.setfocus;
end;
procedure TForm6.BitBtn2MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
bitbtn2.setfocus;
end;
procedure TForm6.Button7MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
button7.setfocus;
end;
end.